<template>
    <div>
        <h1>{{ msg }}</h1>
        <Student name="张三" sex="男" :age="22"></Student>
        <hr>
        <Student name="莉莉" sex="女" :age="18"></Student>
    </div>
</template>
<script>
    /**
     * ref属性：
     */
    // 引入组件
    import Student from './components/Student.vue';
    export default {
        name:'App',
        components:{Student},
        data(){
            return {msg:'欢迎学习Vue'}
        }
    }
</script>